public class dogPanel extends JFrame {
Dog dog = new Dog();

public static ImagePanel dogPanel;
private int hungry;
private JLabel hungryLabel;
private JTextField hungryText;
private int tidy;
private JLabel tidyLabel;
private JTextField tidyText;

public void initialize() {
this.setSize(800,600);
this.setLayout(null);
this.setDefaultCloseOperation(Dog.EXIT_ON_CLOSE);
this.setResizable(false);
this.setLocation(50,50);

int xCoordinate=0;
int yCoordinate=0;
int ylCoordinate=0;

dogPanel = new ImagePanel();
dogpanel.setSize(600,460);
this.add(dogPanel);
xCoordinate = dogPanel.getWidth();
yCoordinate = dogPanel.getHeight();

this.hungry = new JLabel(hungry);
this.hungry.setLocation(xCoordinate,0);
this.hungry.setSize(200,50);
this.add(hungry);
yCoordinate=hungry.getY();

this.hungryText= new JTextField(100);
this.hungryText.setEditable(false);
this.hungryText.setLocation(xCoordinate,yCoordinate+40);
this.hungryText.setSize(200,30);
this.add(hungryText);
yCoordinate=hungryText.getY();

this.tidy = new JLabel(tidy);
this.tidy.setLocation(xCoordinate,yCoordinate+40);
this.tidy.setSize(200,50);
this.add(tidy);
yCoordinate=tidy.getY();

this.tidyText= new JTextField(100);
this.tidyText.setEditable(false);
this.tidyText.setLocation(xCoordinate,yCoordinate+40);
this.tidyText.setSize(200,30);
this.add(tidyText);
yCoordinate=tidyText.getY();

this.setVisible();
}

public void init() {
    dog.imgs.add("img/initial_dog.jpg");}
    public void growup() {
    if(dog.age>=50) {
            }
    if(dog.length<30) {
    }
}
    public void growupTimer() {
        Timer timer = new Timer();
        timer.schedule(new TimerTask() {
            public void run() {
                growup();
            }
        }, 0, 3000
    }
    public void becomeHungry() {
    if(hungry<=50) {
        imgs.add("img/hungry_dog.jpg");    }
    if(dog.hungry==0) {
            }
}
    public void becomeHungryTimer() {
        Timer timer = new Timer();
        timer.schedule(new TimerTask() {
            public void run() {
                becomeHungry();
            }
        }, 0, 3000
    }
    public void becomeBoring() {
    if(dog.happy<=50) {
        dog.imgs.add("img/boringtidy_dogtidy_dog_dog.jpg");    }
}
    public void becomeBoringTimer() {
        Timer timer = new Timer();
        timer.schedule(new TimerTask() {
            public void run() {
                becomeBoring();
            }
        }, 0, 3000
    }
    public void becomeTidy() {
tidy+10=tidy;
    if(tidy<=50) {
        imgs.add("img/tidy_dog.jpg");    }
}
    public void becomeTidyTimer() {
        Timer timer = new Timer();
        timer.schedule(new TimerTask() {
            public void run() {
                becomeTidy();
            }
        }, 0, 3000
    }
public void dieNaturally(int  a) {
    for (    int i=0;
;i<images.size();    i=i+1) {
        images.remove("");    }
    imgs.add("img/img_dead");}
}
